package kz.edu.sdu.itech.qms;

import kz.edu.sdu.itech.qms.util.Logger;

public class Generator extends Thread implements Runnable {
   Logger log = new Logger(getClass());
   QMS qms;
   int time;

   public Generator(QMS q) {
      qms = q;
   }

   @Override
   public void run() {
      while (!QMSProps.DONE) {
         try {
            time = QMSProps.getGenTime();
            Thread.sleep(time * 1000);
            qms.generateClient();
         } catch (InterruptedException e) {
            e.printStackTrace();
         }
      }
   }

}
